<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html class="x-admin-sm">
<base href="<%=basePath%>">
<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="css/xadmin.css">
    <script type="text/javascript" src="lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/xadmin.js"></script>

</head>
<body>
<div class="layui-fluid">
    <div class="layui-row">
<%--        <form class="layui-form" action="warehousing/Warehousing_Add" method="post">--%>

            <div class="layui-form-item">
                <label for="L_pass" class="layui-form-label">
                    <span class="x-red">*</span>入库订单号
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="L_pass" placeholder="请输入入库单号" name="number" required="" lay-verify=""
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_pass" class="layui-form-label">
                    <span class="x-red">*</span>货位号
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="L_repass"  placeholder="请输入货位号" name="pass" required="" lay-verify=""
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                </label>
                <button  class="layui-btn" id="but" >
                    +入库
                </button>
            </div>
<%--        </form>--%>
    </div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script>
    $("#but").click(function () {
        var number=$("#L_pass").val();
        var pass=$("#L_repass").val();

        if (number==""){
            layer.alert("输入的订单号不能为空");
        }else if(pass=="" ){
            layer.alert("输入的货位号不能为空");
        }else{
            $.post("warehousing/Warehousing_Add",{number:number,pass:pass},function (data) {
                layer.alert(data)
                $("#L_pass").attr("value","")
                $("#L_repass").attr("value","")
            })
        }
    })





</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>
